package com.crazymaker.springcloud.user.info.remote.client;

import com.crazymaker.springcloud.common.dto.UserDTO;
import com.crazymaker.springcloud.common.result.RestOut;
import com.crazymaker.springcloud.user.info.remote.fallback.UserServiceClientHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @description:对外部模块提供用户相关信息
 * @date 2019年7月22日
 */


@FeignClient(value = "user-info-provider", fallback = UserServiceClientHystrix.class)
public interface UserServiceClient
{


    @RequestMapping(value = "/get/v1", method = RequestMethod.GET)
    RestOut<UserDTO> getUser(String userId);


}
